Skip to content

Refactor and update mail templates #35150

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 34 commits into
base: main
Choose a base branch
from

Conversation

NorthRealm
Copy link
Contributor

@NorthRealm NorthRealm commented Jul 23, 2025

  • Moved mail templates to new directories.
  • Added new devtest ymls.
  • Embedded styles as much as possible.
  • Added new translation keys for actions email.

@GiteaBot GiteaBot added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label Jul 23, 2025
@github-actions github-actions bot added modifies/translation modifies/go Pull requests that update Go code modifies/templates This PR modifies the template files labels Jul 23, 2025
@lunny lunny added this to the 1.25.0 milestone Jul 23, 2025
@NorthRealm NorthRealm force-pushed the patch-mail-templates-1 branch from e1d2ca4 to 3ff5727 Compare July 24, 2025 12:04
@NorthRealm NorthRealm requested a review from delvh July 25, 2025 06:26
Copy link
Contributor

@wxiaoguang wxiaoguang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

templates/mail/footer_gitea.tmpl is not right

@GiteaBot GiteaBot added lgtm/blocked A maintainer has reservations with the PR and thus it cannot be merged and removed lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. labels Jul 27, 2025
@NorthRealm NorthRealm requested a review from wxiaoguang July 27, 2025 09:49
Copy link
Contributor

@wxiaoguang wxiaoguang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Still not right, footer_view_on_gitea.tmpl is not right either. The HTML layouts are wrong, and it is fragile by passing all variables "." to sub-templates (In history many 500 errors were caused by that).

Recently I don't have time to do further reviews for PRs, other maintainers could help to review and improve, and feel free to dismiss the "change request" if the concerns have been addressed.

@NorthRealm

This comment was marked as outdated.

@NorthRealm NorthRealm closed this Jul 27, 2025
@NorthRealm NorthRealm deleted the patch-mail-templates-1 branch July 27, 2025 12:32
@wxiaoguang
Copy link
Contributor

I think you can revert "sub template" related changes, only make clear changes you need.

@NorthRealm

This comment was marked as outdated.

@NorthRealm NorthRealm requested a review from delvh August 3, 2025 05:33
@NorthRealm NorthRealm changed the title Refine mail templates Refactor and update mail templates Aug 3, 2025
@wxiaoguang
Copy link
Contributor

wxiaoguang commented Aug 8, 2025

I think you can revert "sub template" related changes, only make clear changes you need.

I think you can revert "sub template" related changes, only make clear changes you need.

I still think all the "sub template" related changes should be reverted.

The "sub template" approach without a careful design only introduces more maintainability problems. And indeed the "sub template" changes are not related to the improvements you needed.

I will dismiss my "change request" and leave the reviews to active maintainers.

@wxiaoguang wxiaoguang dismissed their stale review August 8, 2025 14:36

dismiss

@GiteaBot GiteaBot added lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. and removed lgtm/blocked A maintainer has reservations with the PR and thus it cannot be merged labels Aug 8, 2025
@wxiaoguang wxiaoguang removed their request for review August 8, 2025 14:38
@NorthRealm
Copy link
Contributor Author

@wxiaoguang ok I reverted all subs, which was terrible 😅

@NorthRealm NorthRealm force-pushed the patch-mail-templates-1 branch from 6eee4ec to 9561495 Compare August 8, 2025 16:17
@lunny lunny added the type/refactoring Existing code has been cleaned up. There should be no new functionality. label Aug 9, 2025
@GiteaBot GiteaBot added lgtm/need 1 This PR needs approval from one additional maintainer to be merged. and removed lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. labels Aug 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lgtm/need 1 This PR needs approval from one additional maintainer to be merged. modifies/go Pull requests that update Go code modifies/templates This PR modifies the template files modifies/translation type/refactoring Existing code has been cleaned up. There should be no new functionality.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants